#ifndef _TANKSTATE_H
#define _TANKSTATE_H

#pragma once
#include "SceneObjectState.h"
#include "SceneState.h"
#include <iostream>
#include "math.h"

class TankState : public SceneObjectState
{
public:
	TankState(int posX, int posY, string playerName, string nameObj);
	virtual ~TankState(void);
	void setRotation(bool flag);
	bool getRotation();
	void setAngle(int angle);
	int getAngle();
	void setSpeed(int speed);
	int getSpeed();
	void setShot(bool flag);
	bool getShot();
	void setAngularSpd(int angSpd);
	int getAngularSpd();
	void move(SceneState* s);
	void rotate();
private:
	bool kPressedR,kPressedM,rotation;
	int angle;
	int speed;
	bool shot;
	int angularSpd;
	void advance();
	void retreat();
};

#endif
